package com.jinlia.show.modules.system.controller.sys;


import com.jinlia.show.modules.base.model.po.SysUserPO;
import com.jinlia.show.modules.base.system.service.SysUserRoleMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("userRole")
public class SysUserRoleController {
    @Autowired
    SysUserRoleMapperService sysUserRoleMapperService;
    @PostMapping("update/byUser")
    public ResponseEntity saveUser(@RequestBody SysUserPO sysUserVO) {
        sysUserRoleMapperService.updateUserRoleByUserId(sysUserVO);
        return ResponseEntity.ok(true);
    }
}
